<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
use App\Models\ShopType;


class SeedShopTypeTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        $data = [
            [
                'name'  =>  '服饰鞋包',
                'created_at'  =>  now(),
                'updated_at'  =>  now(),
            ],
            [
                'name'  =>  '母婴用品',
                'created_at'  =>  now(),
                'updated_at'  =>  now(),
            ],
            [
                'name'  =>  '家电家具',
                'created_at'  =>  now(),
                'updated_at'  =>  now(),
            ],
            [
                'name'  =>  '电子产品',
                'created_at'  =>  now(),
                'updated_at'  =>  now(),
            ],
        ];

        ShopType::insert($data);
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        DB::table('shop_types')->truncate();
        //
    }
}
